<template>
  <!-- 标题带下划线中间粗 -->
  <div>
  <div class="title-line">
    <span class="title-line-title" :style="{color: color =='black'?'#000' :'#fff'}">{{ title }}</span>
    <img class="title-line-img" src="../assets/image/publice/line.png" >
    
  </div>
  <div class="mobile">
    <span class="mobile-title" :style="{color: color =='black'?'#000' :'#fff'}">{{ title }}</span>
    <img class="mobile-img" src="../assets/image/publice/line.png" >
    
  </div>
</div>
</template>

<script>
export default {
  components: {},
  props: {
    title: String,
    color: {
      type: String,
      default: "black",
    }
    
  },
  data() {
    return {};
  },

 
  methods: {
    onMore(){
      this.$emit('more');
    }
  },
};
</script>
<style lang="scss" scoped>
@media screen and (min-width: 1200px) {
  .mobile{
    display: none;
  }
.title-line {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;


  
  &-title {
    box-sizing: border-box;
    font-weight: bold;
    font-size: 26px;
    color: #333333;
  }

  &-img {
    margin-top: 12px;
    width: 236px;
    height: 3px;
    
  }
}
}
</style>
<style lang="scss" scoped>
  @media screen and (max-width: 1200px) {
   .title-line {
      display: none;
    }
  .mobile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  
  
    
    &-title {
      box-sizing: border-box;
      font-weight: bold;
      font-size: fn.rpx(26);
      color: #333333;
    }
  
    &-img {
      margin-top: fn.rpx(12);
      width: fn.rpx(236);
      height: fn.rpx(3);
      
    }
  }
  }
  </style>